import Vue from 'vue'
var ws ={
    template: '<div> ws component </div>',

    created(){
        console.log( "create ws component ")
    }
}
var xs = {
    template: '<h4> XS component {{name }} </h4>',
    data() {
        return { 
            name: "wangsheng"
        }
    },
    components: {

    },

    created() {
        console.log( "create xs component ")
    }
}

console.log( "------")

new Vue({
    el:"#app",
    template: '<div><ws> </ws> <xs> </xs> </div>',
    components:{
        ws: ws,
        xs: xs
    }
})